#ifndef IMAGEITEM_H
#define IMAGEITEM_H

#include <QGraphicsObject>

class ImageItem : public QGraphicsObject
{
    Q_OBJECT
public:
    ImageItem(const QImage *image, QGraphicsItem *parentItem);

    void setImage(const QImage *image);
    const QImage *image() const;

    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

private:
    const QImage *m_image;
};

#endif // IMAGEITEM_H
